package cn.wolfcode.luowowo.member.service;

import cn.wolfcode.luowowo.common.util.AjaxResult;
import cn.wolfcode.luowowo.member.domain.UserInfo;

import java.util.List;

public interface IUserInfoService {
    boolean checkPhone(String phone);

    AjaxResult userRegist(String phone, String nickname, String password, String rpassword, String verifyCode);

    AjaxResult userLogin(String phone, String password);

    List<UserInfo> list();

    UserInfo updateUserBase(UserInfo userInfo);

    AjaxResult checkPhoneAndverifyCode(String code, String phone);

    UserInfo updateUserHead(UserInfo userInfo, String headImgUrl);

    UserInfo updateUserPhone(UserInfo userInfo, String phone);

    List<UserInfo> getConcernsUser(Long userId);

    UserInfo getHisUserById(Long hisId);

    Integer getUserCount(Long userId);

    Integer getBeUserCount(Long userId);

    boolean saveUserConcern(Long beConcernId, Long id);

    void saveVisitorsRank(int visitorsCount, Long userId);

    UserInfo getUserByName(String name);

    void saveOrDeleteBlackList(Long id, Long blackId);

    List<UserInfo> getBlackList(Long id);


}
